package host.skiree.nettydemo.message;

import lombok.Data;
import lombok.ToString;

import java.util.Set;

/**
 * @author anorak
 */
@Data
@ToString(callSuper = true)
public class GroupListResponseMessage extends AbstractResponseMessage {

    private Set<String> groups;

    public GroupListResponseMessage(boolean success, String reason) {
        super(success, reason);
    }

    public GroupListResponseMessage(Set<String> groups) {
        this.groups = groups;
    }

    @Override
    public int getMessageType() {
        return GroupListResponseMessage;
    }
}
